package com.noodles.mall.util;

import java.io.Serializable;
import java.util.HashMap;

public class ChainMap extends HashMap<String, Object> implements Serializable {

    public static ChainMap instance() {
        System.out.println("ChainMap: instance");
        return new ChainMap();
    }

    @Override
    public ChainMap put(String key, Object value) {
        System.out.println("ChainMap: put");
        System.out.println("key: "+key);
        System.out.println("value: "+value);
        super.put(key, value);
        return this;
    }
}
